<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="如何修改主机时区和时间">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="ZH-CN_TOPIC_0000002200116621">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>如何修改主机时区和时间</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="ZH-CN_TOPIC_0000002200116621"></a><a name="ZH-CN_TOPIC_0000002200116621"></a>

<h1 class="topictitle1">如何修改主机时区和时间</h1>
<div><p>当待安装客户端的主机与<span>OceanProtect</span>设备时间不一致时，可参考本章节修改待安装客户端的主机的时区和时间。</p>
<div class="section"><h4 class="sectiontitle">Linux OS</h4><p>以下操作以SUSE Linux Enterprise Server 12 SP4为例：</p>
<ol><li><span>使用PuTTY工具以<strong id="ZH-CN_TOPIC_0000002200116621__zh-cn_topic_0000002200031305_b916917212">root</strong>账户登录待安装客户端的主机。</span></li><li><span>执行以下命令，修改待安装客户端的主机的时区。</span><p><ul><li>如需修改为UTC，请执行以下命令：<pre class="screen">ln -sf /user/share/zoneinfo/UTC /etc/localtime</pre>
</li><li>如需修改为CST，请执行以下命令：<pre class="screen">ln -sf /user/share/zoneinfo/<em>Asia/Shanghai</em> /etc/localtime</pre>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p>命令中的<em>Asia/Shanghai</em>请根据待修改的时区替换。</p>
</div></div>
</li></ul>
</p></li><li><span>执行以下命令，修改待安装客户端的主机的系统时间。</span><p><pre class="screen">date -s "20241125 20:22:35"</pre>
</p></li><li><span>执行以下命令，使待安装客户端的主机的硬件时间与系统时间保持一致。</span><p><pre class="screen">hwclock --systohc </pre>
</p></li></ol>
</div>
<div class="section"><h4 class="sectiontitle">AIX OS</h4><p>以下操作以SUSE Linux Enterprise Server 12 SP4为例：</p>
<ol><li><span>使用PuTTY工具以<strong id="ZH-CN_TOPIC_0000002200116621__zh-cn_topic_0000002200031305_b916917212_1">root</strong>账户登录待安装客户端的主机。</span></li><li><span>执行以下命令，进入SMIT（System Management Interface Tool）。</span><p><pre class="screen">smit</pre>
</p></li><li><span>系统回显类似如下信息时，通过方向键选择“System Environments”，并按“Enter”。</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Software Installation and Maintenance
  Software License Management
  Manage Editions
  Devices
  System Storage Management (Physical &amp; Logical Storage)
  Security &amp; Users
  Communications Applications and Services
  Workload Partition Administration
  Print Spooling
  Advanced Accounting
  Problem Determination
  Performance &amp; Resource Scheduling
  <strong>System Environments</strong>
  Processes &amp; Subsystems
  Applications
  Installation Assistant
  Electronic Service Agent
  Cluster Systems Management
  Using SMIT (information only)</pre>
</p></li><li><span>系统回显类似如下信息时，通过方向键选择“Change / Show Date and Time”，并按“Enter”。</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Stop the System
  Aix Security Expert
  Assign the Console
 <strong> Change / Show Date and Time</strong>
  Manage Language Environment
  Change / Show Characteristics of Operating System
  Change / Show Number of Licensed Users
  Broadcast Message to all Users
  Manage System Logs
  Change / Show Characteristics of System Dump
  Change / Show Default Browser
  Web-based System Manager
  System Cryptographic Operational Mode
  Manage Remote Reboot Facility
  Manage System Hang Detection</pre>
</p></li><li><span>系统回显类似如下信息时，选择对应选项修改时区或时间，并按“Enter”。</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Change / Show Date &amp; Time
  Change Time Zone Using System Defined Values
  Change Time Zone Using User Inputted Values</pre>
</p></li></ol>
</div>
<div class="section"><h4 class="sectiontitle">Windows OS</h4><p>以下操作以Windows 10为例：</p>
<ol><li><span>打开“控制面板”，单击“时钟和区域”。</span></li><li><span>选择“设置时间和日期”。</span></li><li><span>在“日期和时间”界面，单击“更改时区”，选择时区后单击“确定”。</span></li><li><span>在“日期和时间”界面，单击“更改日期和时间”，设置时间后单击“确定”。</span></li><li><span>单击“确定”，完成修改。</span></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>